import Vue from 'vue'
import VueRouter from 'vue-router'

import City from '../pages/city/City.vue';
import Home from '@/pages/home/Home.vue';

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    name:'Home',
    component:Home,
  }
  ,
   {
    path:'/city',
    name:'City',
    component:City,
   }
]


// eslint-disable-next-line no-new
const router = new VueRouter({
  mode: 'hash',
  routes:routes,
})



export default router
